package com.yimi.yinhepda.entity.response;

import java.util.List;

/**
 * @author 000432
 * @date 2017/4/11 0011
 *
 * 盘点任务接口的返回
 */

public class CheckTaskResponse {

  public boolean success;
  private String[] errorMessages;
  private int errorCode;
  public List<CheckTaskEntity> data;

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String[] getErrorMessages() {
    return errorMessages;
  }

  public void setErrorMessages(String[] errorMessages) {
    this.errorMessages = errorMessages;
  }

  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(int errorCode) {
    this.errorCode = errorCode;
  }

  public List<CheckTaskEntity> getData() {
    return data;
  }

  public void setData(List<CheckTaskEntity> data) {
    this.data = data;
  }

  /**
   * 盘点任务
   */
  public static class CheckTaskEntity {
    /** 盘点单号 */
    String stockNo;
    /** 盘点库区 */
    String stockArea;
    /** 票数 */
    Integer stockNum;
    /** 状态(1：未盘点2：盘点中3：已盘点) */
    Integer stockStatus;
    /** radiobutton状态 */
    boolean isChecked;

    public String getStockNo() {
      return stockNo;
    }

    public void setStockNo(String stockNo) {
      this.stockNo = stockNo;
    }

    public String getStockArea() {
      return stockArea;
    }

    public void setStockArea(String stockArea) {
      this.stockArea = stockArea;
    }

    public Integer getStockNum() {
      if (stockNum == null) {
        stockNum = 0;
      }
      return stockNum;
    }

    public void setStockNum(Integer stockNum) {
      this.stockNum = stockNum;
    }

    public Integer getStockStatus() {
      if (stockStatus == null) {
        stockStatus = 0;
      }
      return stockStatus;
    }

    public void setStockStatus(Integer stockStatus) {
      this.stockStatus = stockStatus;
    }

    public boolean isChecked() {
      return isChecked;
    }

    public void setChecked(boolean checked) {
      isChecked = checked;
    }
  }
}
